const express = require('express');
const wearService = require('../services/wearService');
const menService = require('../services/menService');
const womenService = require('../services/womenService');
const mobileService = require('../services/mobileService');

var router = express.Router();

router.use('/mens',async function (req,res,next) {
    var data = await menService.findByKind();
    res.send(data);
});

router.use('/womens',async function (req,res,next) {
    var data = await womenService.findByKind();
    res.send(data);
});

router.use('/kids',async function (req,res,next) {
    var data = await wearService.findByKind();
    res.send(data);
});

router.use('/mobiles',async function (req,res,next) {
    var data = await mobileService.findByKind();
    res.send(data);
});


exports.router = router;